import tenumn.energytech.api.register.LangBuilder;

import java.io.File;
import java.util.Arrays;
import java.util.Objects;
import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        var itemTexture="F:\\Minecraft\\.minecraft\\versions\\energytech\\src\\main\\resources\\assets\\energytech\\textures\\item\\";
        var dir=new File(itemTexture);
        String format="""
                public static final ItemHolder<Item> %s=registry.item("%s",Item::new)
                            .build();""";
        for (File file : Objects.requireNonNull(dir.listFiles())) {
            if (file.isFile()) {
                var name = file.getName().replace(".png", "");
                System.out.printf((format) + "%n", name, name);
            }
        }

    }
}
